//
//  UIView+Frame.m
//  01-UIView、UIWindow
//
//  Created by Hanlingyu on 16/7/14.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)

- (void)setLtq_x:(CGFloat)ltq_x {
    CGRect rect = self.frame;
    rect.origin.x = ltq_x;
    self.frame = rect;
}

- (CGFloat)ltq_x {
    return self.frame.origin.x;
}

- (void)setLtq_y:(CGFloat)ltq_y {
    CGRect rect = self.frame;
    rect.origin.y = ltq_y;
    self.frame = rect;
}
- (CGFloat)ltq_y {
    return self.frame.origin.y;
}

- (void)setLtq_width:(CGFloat)ltq_width {
    CGRect rect = self.frame;
    rect.size.width = ltq_width;
    self.frame = rect;
}

- (CGFloat)ltq_width {
    return self.frame.size.width;
}

- (void)setLtq_height:(CGFloat)ltq_height {
    CGRect rect = self.frame;
    rect.size.height = ltq_height;
    self.frame = rect;
}

- (CGFloat)ltq_height {
    return self.frame.size.height;
}


@end
